package com.wosai.register.repository;

import java.util.List;

import com.wosai.register.model.Employee;
import com.wosai.register.model.EmployeeAccount;
import com.wosai.register.model.EmployeeCash;

public interface EmployeeRepository {
    Employee findById(String merchantId, String id);
    Employee findByUsername(String merchantId, String username);
    
    List<Employee> findByTerminal(String merchantId);
    
    
    List<String> insertBatch(List<Employee> users);
    List<String> updateBatch(List<Employee> users);
    
    void delete(String merchantId, String id);
    void deleteByTerminal(String merchantId);
    
    
    List<EmployeeCash> findCashesByTerminal(String merchantId, String branchId, String terminalId);
    void insertCashBatch(List<EmployeeCash> cashes);
    
    List<EmployeeAccount> findAccountsByTerminal(String merchantId, String branchId, String terminalId);
    void insertAccountBatch(List<EmployeeAccount> accounts);
}
